<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

require_once JPATH_BASE .DS. 'components' .DS. 'com_mariageplanner' .DS. 'helpers' .DS. 'controllerform.php';

/**
 * Task Controller
 */
class MariagePlannerControllerTask extends MariagePlannerControllerBaseForm
{
	public function getModel($name = 'Task', $prefix = 'MariagePlannerModel', $config = array('ignore_request' => false))
	{		
		$model = parent::getModel($name, $prefix, $config);
	
		return $model;
	}	
	
	public function done()
	{		
        $model = $this->getModel();
		$res = $model->done();
	
		$this->setRedirect(JRoute::_('index.php?option=com_mariageplanner&view=tasks'));
		
		return $res;
	}
}
?>